package com.parking.mgr.useraccount.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.parking.mgr.useraccount.model.entity.BasicRoleUserEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @ClassName BasicRoleUserService
 * @Description TODO
 * @Auther: zhijianpu
 * @Date: 2023/6/6
 */
public interface BasicRoleUserService extends IService<BasicRoleUserEntity> {

    /**
     * 根据用户账户获取用户角色列表
     *
     * @param passportId
     * @return
     */
    List<String> getRoleUserList(String passportId);

    /**
     * 根据用户账户获取用户角色列表实体
     *
     * @param passportId
     * @return
     */
    List<BasicRoleUserEntity> getRoleUserEntityList(String passportId);

    /**
     * 根据用户ID删除用户角色
     *
     * @param ids
     */
    void deleteBatchUserRolesById(List<String> ids);


    String getOneByPassportId(String passportId);
}
